function [v_v_out,fre_offset]= V_V_fre(CMA_out)
CMA_out = CMA_out(100:end-100);
% CMA_out = CMA_out
total_angle = 0;
for i = 2:length(CMA_out)
    dn = CMA_out(i)*conj(CMA_out(i-1));
    dn4 = dn.^4;
    cur_angle = angle(dn4)/4;
    % if cur_angle<0
    %     cur_angle=cur_angle+2*pi;
    % end
    total_angle  = total_angle+cur_angle;
end
avgangle = total_angle/(length(2:length(CMA_out)));
v_v_out = CMA_out.*exp(1i*(1:length(CMA_out))*(-avgangle));
scatterplot(v_v_out);
title("恢复的星座图Viterbi-Viterbi")
fre_offset = avgangle/(2*pi)*20e9;
avgangle
% scatterplot(CMA_out);